package org.forever.framework.system.web.action;

import net.sf.json.JSONObject;

import org.forever.framework.system.entities.SysUser;
import org.forever.framework.web.action.BaseAction;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ModelDriven;

@Controller("sysUserAction")
@Scope("prototype")
public class SysUserAction extends BaseAction implements ModelDriven<SysUser>{
	
	private static final long serialVersionUID = 6495906548765368214L;
	private SysUser sysUser = new SysUser();
	
	public void save()throws Exception{
		out.print(JSONObject.fromObject(sysUser).toString());
	}

	public SysUser getModel() {
		return sysUser;
	}
	
}
